package com.kexio.auth.aspect;

import org.springframework.http.HttpStatus;

/**
 * 权限拒绝异常
 */
public class PermissionDeniedException extends RuntimeException {
    
    private static final long serialVersionUID = 1L;
    
    private final int code = HttpStatus.FORBIDDEN.value();
    
    public PermissionDeniedException(String message) {
        super(message);
    }
    
    public PermissionDeniedException(String message, Throwable cause) {
        super(message, cause);
    }
    
    public int getCode() {
        return code;
    }
}
